﻿using UnityEngine;
using System.Collections;

public class LifeGauge : MonoBehaviour
{
	// Properties

	[SerializeField]
	TextMesh			m_lifeText;

	// Update is called once per frame
	void Update ()
	{
		BaseCharacter character	= GameScene.playerCharacter;
		if(character != null && character.curHP < 999)
		{
			m_lifeText.text	= "Life : " + character.curHP;
		}
		else
		{
			m_lifeText.text	= "";
		}
	}
}
